{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
    <div class="main">
        <!-- left side start-->
        {include admin.inc.menu}
        <!-- left side end-->


        <!-- main content start-->
        <section class="right-section" id="right-section">
            <!-- start of inner-frame -->
            <div class="inner-iframe">

                <!-- page breadcrumb start-->
                {include admin.inc.bread}
                <!-- page "breadcrumb end-->
                <!-- Nav tabs -->
                <ul class="nav nav-tabs">

                    <li {if $id==''}class="active"{/if}><a {if
                                                           $id==''}href="javascript:void(0);"{else}href="{$add_url}"{/if}><i
                            class="glyphicon glyphicon-plus"></i> 添加站内信</a></li>
                    <li><a href="{$index_url}"><i class="glyphicon glyphicon-th-list"></i> 站内信列表</a></li>
                    <!--<li><a href="ruleAdd"><i class="glyphicon glyphicon-plus"></i> 添加规则</a></li>-->
                    <li><a href="ruleIndex"><i class="glyphicon glyphicon-th-list"></i> 规则列表</a></li>
                    <li><a href="tmplAdd"><i class="glyphicon glyphicon-plus"></i> 添加模板</a></li>
                    <li><a href="tmplIndex"><i class="glyphicon glyphicon-th-list"></i> 模板列表</a></li>

                </ul>
                <div class="inner-container">
                    <form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
                          autocomplete="off">


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>接收用户</label>
                            <div class="col-sm-4">

                                <select class="form-control  " id="inputto_member_id"
                                        name="data[to_member_id]" required cname="接收用户">
                                    <option value="">请选择接收用户</option>

                                    {loop $to_member_idoptions $v}
                                    <option {if $item[to_member_id]== $v[id]}selected{/if} value="{$v[id]}">{$v[username]}({$v[nickname]})</option>
                                    {/loop}
                                </select>
                            </div>
                            <p class="help-block"></p>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>模板</label>
                            <div class="col-sm-4">

                                {setSelectOptions $option_arr data[tmpl_id] '' '请选择模板' 'required cname="模板"'}
                            </div>
                            <p class="help-block"></p>

                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>信息内容 </label>
                            <div class="col-sm-4">

                                <textarea dtype="" class="form-control" maxlength="255" name="data[to_content]"
                                          placeholder="信息内容" required cname="信息内容"
                                          value="">{$item[message_content]}</textarea>
                            </div>
                            <p class="help-block"></p>

                        </div>



                        <!--tmpl-assocfields-->
                        <div class="btn-group btn-group-or">
                            <a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}"
                               class="btn btn-primary ajaxproxy"
                               proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>

                        </div>
                    </form><!-- content add form -->
                </div>
            </div><!-- end of inner -->
        </section>
    </div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
    seajs.use("admin/message_remindadd", function (parameter) {

        /**--tmpl-templatejavascript--**/

        <!--tmpl-templatejavascript-->
        parameter.upload_url = "{$upload_url}";
        parameter.image_search_url = "{$image_search_url}";
        parameter.image_list_url = "{$image_list_url}";

        parameter.init();
    });
</script>


</body>
</html>
